package org.keyuan.struts1.form;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionMapping;
import org.keyuan.entity.Department;
import org.keyuan.entity.Employee;
import org.keyuan.entity.IdCard;

public class EmployeeForm extends BaseForm{
	private static final long serialVersionUID = 5310423765952229858L;
	private Employee employee=new Employee();
	
	public EmployeeForm() {
		this.employee.setIdCard(new IdCard());
		this.employee.setDepartment(new Department());
	}
	public Employee getEmployee() {
		return employee;
	}

	public void setEmployee(Employee employee) {
		this.employee = employee;
	}
	
	@Override
	public void reset(ActionMapping mapping, HttpServletRequest request) {
		this.employee.getIdCard().setCard_id(null);
		super.reset(mapping, request);
	}
}
